package com.lqd.mall.interaction.system;

import com.lqd.mall.interaction.basis.BasisEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@ToString
@Entity
@Table(name = "sys_menu")
public class SysMenuEntity extends BasisEntity {

  @Id
  @Column(name = "menu_id")
  @GeneratedValue(strategy= GenerationType.IDENTITY)
  private long menuId;

  @Column(name = "menu_name")
  private String menuName;
  @Column(name = "parent_id")
  private Long parentId;
  @Column(name = "order_num")
  private long orderNum;
  @Column(name = "path")
  private String path;

  @Column(name = "component")
  private String component;

  @Column(name = "query")
  private String query;

  @Column(name = "is_frame")
  private String isFrame;

  @Column(name = "is_cache")
  private String isCache;

  @Column(name = "menu_type")
  private String menuType;

  @Column(name = "visible")
  private String visible;

  @Column(name = "status")
  private String status;
  @Column(name = "perms")
  private String perms;

  @Column(name = "icon")
  private String icon;

}
